#include <stdio.h>

#define BUFSIZE	64

int main(int argc, char **argv)
{
	FILE *fp = NULL;
	char buf[BUFSIZE] = {};

	if (argc < 2)
		return 1;

	fp = fopen(argv[1], "r");
	if (NULL == fp)
		return 1;

	// 从第11个字符开始读10个成员
	fseek(fp, 10, SEEK_SET /*SEEK_CUR*/);
	printf("当前文件指针的位置%ld\n", ftell(fp));
	fread(buf, 1, 10, fp);
	printf("当前文件指针的位置%ld\n", ftell(fp));
	puts(buf);

	// rewind(fp) == fseek(fp, 0, SEEK_SET);

	fclose(fp);

	return 0;
}

